package com.coding.kan_yi_dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 砍一刀，不买就砍你一刀
 * @since 2023-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ShoppingCartItem implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 购物项主键id
     */
    @TableId(value = "cart_item_id", type = IdType.AUTO)
    private Integer cartItemId;

    /**
     * 用户主键id
     */
    private Integer userId;

    /**
     * 关联商品id
     */
    private Integer goodsId;

    /**
     * 最大为5
     */
    private Integer goodsCount;

    /**
     * 0-未删除，1-已删除
     */
    private Integer isDeleted;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 商品表
     */
    @TableField(exist = false)
    private GoodsInfo goodsInfo;


}
